package com.lfy.kcat.user;

import org.dromara.common.mybatis.config.MybatisPlusConfiguration;
import org.dromara.common.satoken.config.SaTokenConfiguration;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author leifengyang
 * @version 1.0
 * @date 2025/9/13 16:42
 * @description:
 */
@EnableFeignClients(basePackages = "com.lfy.kcat.user.feign")
@EnableScheduling


@MapperScan(basePackages = "com.lfy.kcat.user.mapper")
//移除脚手架默认的配置
// 正确做法2：如果确实需要排除，应该排除正确的自动配置类
@SpringBootApplication(exclude = {
    MybatisPlusConfiguration.class,
    SaTokenConfiguration.class

})
public class UserMainApplication {

    public static void main(String[] args) {
        SpringApplication.run(UserMainApplication.class, args);
    }
}
